package com.flywen.generator;

import java.io.IOException;

public class ModelMaker {
    private ParserInfo parserInfo;

    public ModelMaker(ParserInfo parserInfo) {
        this.parserInfo = parserInfo;
    }

    public void makeModel() throws IOException, Exception {
        Utils.writeContentToFile(Utils.createFile(this.parserInfo.getModelPackage(), this.parserInfo.getModelName(), ".java"), Utils.generateDaoContent(this.parserInfo, "ModelTemplate.ftl"));
    }
}